// utils/CommonConstant.js
class CommonConstant {
  static IAM_ENDPOINT = "";
  static ENDPOINT = "";
  static project_id = "";
  static product_id = "";
  static device_id = "";
  static DOMAIN_USERNAME = "";
  static IAM_USERNAME = "";
  static IAM_PASSWORD = "";
  static token = ""; // 添加 token 存储
  
  static get AUTH_TOKEN() {
    return `${this.IAM_ENDPOINT}/v3/auth/tokens`;
  }
  
  static get SHOW_SHADOW() {
    return `${this.ENDPOINT}/v5/iot/${this.project_id}/devices/${this.device_id}/shadow`;
  }
  
  static get CONTROL_DEVICE_SYNC() {
    return `${this.ENDPOINT}/v5/iot/${this.project_id}/devices/${this.device_id}/commands`;
  }
}

export default CommonConstant;
